﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySqlConnection;

namespace Application
{
    public static class VOMapperNews
    {
        public static VONews NewsInstanceFromData(NewsClass newsItem)
        {
            VONews news = new VONews();
            news.Id = newsItem.id;
            news.Title = newsItem.title;
            news.Description = newsItem.description;
            news.Created = newsItem.created;
            news.Modified = newsItem.modified;
            return news;
        }

    }
}
